package com.jiangjiang.eshop.wms.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.wms.domain.GoodsAllocationEntity;
import com.jiangjiang.eshop.wms.dto.GoodsAllocationDTO;
import org.mapstruct.Mapper;

/**
 * @ClassName GoodsAllocationConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/9/13 6:41
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface GoodsAllocationConvert {

    GoodsAllocationDTO convertEntity2DTO(GoodsAllocationEntity entity);

    GoodsAllocationEntity convertDTO2Entity(GoodsAllocationDTO entity);

    Page<GoodsAllocationDTO> convertPage2DTO(Page<GoodsAllocationEntity> entity);
}
